package com.xunyin.modules.members.service.dto;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.xunyin.serializer.BigDecimalSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author admin
 * @date 2022-09-22
 */
@Data
public class TMembersDto implements Serializable {

    /**
     * 会员设置ID
     */
    @TableId
    @ApiModelProperty(value = "会员设置ID")
    private Integer id;

    /**
     * 会员名称
     */
    private String membersName;

    /**
     * 会员级别
     */
    private Integer membersLevel;

    /**
     * 会员卡享受时长
     */
    @ApiModelProperty(value = "小时价格")
    @JsonSerialize(using = BigDecimalSerializer.class)
    private BigDecimal membersTimeLength;

    /**
     * 会员积分抵现
     */
    private String membersIntegralToNow;

    /**
     * 会员价格
     */
    @ApiModelProperty(value = "小时价格")
    @JsonSerialize(using = BigDecimalSerializer.class)
    private BigDecimal membersPrice;

    /**
     * 会员享受购买折扣
     */
    @ApiModelProperty(value = "小时价格")
    @JsonSerialize(using = BigDecimalSerializer.class)
    private BigDecimal membersDiscount;

    /**
     * 用户会员卡-适用主体名称
     */
    private String membersMainName;

    /**
     * 会员卡-适用主体
     */
    private String membersMainId;

    /**
     * 转让次数（一级会员不限次数，二级会员10次）
     */
    private Integer membersTransCount;
}
